OsreeFetcher: Treat 403 as not found
authorSjoerd Simons <sjoerd@luon.net>
Mon, 17 Oct 2016 20:30:41 +0000 (22:30 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 5 Nov 2016 17:34:09 +0000 (17:34 +0000)
commitbe9a3a7a19336ba680bc5f4a7b62add4bbfddb81
tree671ccd38391d0cbd53b70034c10c5aa5e096ea0e
parent0613b4a47920374888f1c731ac4267094a6a6a8e
OsreeFetcher: Treat 403 as not found

Private Cloudfront instances return 403 for objects which don't exist
rather then a 404.

Change the fetcher to assume 403 is ok for download that are "optional"
rather then erroring out at that step (e.g. trying to download a static
delta if the remote repo doesn't have those)

Closes: #531
Approved by: cgwalters
src/libostree/ostree-fetcher.c